feat: add max-width constraint for large screen layout#10688
Draft
roomote[bot] wants to merge 1 commit intomainfrom
Draft
feat: add max-width constraint for large screen layout#10688roomote[bot] wants to merge 1 commit intomainfrom
roomote[bot] wants to merge 1 commit intomainfrom
Conversation
Adds a max-width of 896px and centers content when Roo Code is displayed in editor/tab mode on large screens. This improves readability and visual consistency, similar to how Cursor handles large screen layouts. The constraint only applies in "editor" render context (when opened as a tab), not in the sidebar where width is naturally constrained. Closes #10687
2 tasks
Contributor
Author
Reviewed the PR changes. The implementation is clean and correct:
No issues found. Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related GitHub Issue
Closes: #10687
Description
This PR attempts to address Issue #10687 by adding a max-width constraint for large screen layouts in editor/tab mode.
Implementation Details:
App.tsxthat appliesmax-width: 896pxwith centered content (mx-auto)renderContext === "editor"(tab mode), leaving the sidebar layout unchangedKey design choices:
max-w-[896px] mx-auto) for consistency with the existing codebaseTest Procedure
Automated Testing:
tsc --noEmit)eslint)Pre-Submission Checklist
Screenshots / Videos
No screenshots available in this automated environment, but the visual change should show:
Documentation Updates
Additional Notes
This is an automated PR attempt. Feedback and guidance are welcome!
Important
Adds a max-width constraint of 896px for large screen layouts in editor/tab mode in
App.tsx, using Tailwind CSS for consistency.divinApp.tsxwithmax-width: 896pxand centered content (mx-auto) for large screens in editor/tab mode.renderContext === "editor", leaving sidebar layout unchanged.max-w-[896px] mx-auto) for consistency.Appcomponent level.tsc --noEmit), linting (eslint), andApp.spec.tsxtests (7/7).This description was created by
for ba7aa82. You can customize this summary. It will automatically update as commits are pushed.